import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    prevFalut: [],
    nextFault: [],
    newAddFault: [],
    index: 0,
    prevDate: '',
    nextDate: '',
    allObj: {},
  },
  mutations: {
    // 改变state中的值
    update(state, { allObj }) {
      state.allObj = allObj
    },
  },
  actions: {},
  modules: {},
})
